package com.sywb.chuangyebao.view.fragment;

import android.os.Bundle;
import android.view.View;

import com.sywb.chuangyebao.contract.IncomeAndDependitureContract;

import java.io.Serializable;

public class IncomeAndDependitureDetailsFragment extends BaseRefreshFragment<IncomeAndDependitureContract.Presenter> implements IncomeAndDependitureContract.View {

    private int tabIndex;

    /**
     * Fragment 实例
     */
    public static IncomeAndDependitureDetailsFragment newInstance(Object... pramars) {
        IncomeAndDependitureDetailsFragment fragment = new IncomeAndDependitureDetailsFragment();
        fragment.setArguments(getBundle(pramars));
        return fragment;
    }

    @Override
    public void initView(View view, Bundle bundle) {
        super.initView(view, bundle);
    }

    @Override
    public void initPresenter() {
        mPresenter.initPresenter(this);
    }

    @Override
    public boolean useRxBus() {
        return false;
    }

    @Override
    public int getTabIndex() {
        Bundle bundle = getArguments();
        if (bundle != null) {
            tabIndex = bundle.getInt("p0");
        }
        return tabIndex;
    }
}
